
<table border="1px">
		<thead>
		<tr>
		<th>Pet Name</th>
		<th>Visit Date</th>
		<th>Visit Time</th>
		<th>Purpose</th>
		<th>View</th>
		<th>Edit</th>
		<th>Delete</th>
		</tr>
		</thead>
<?php foreach ($visit as $array => $object): ?>
<tr>
<td><?php echo "$object->pet_name"; ?></td>
<td><?php echo "$object->visit_date"; ?></td>
<td><?php echo "$object->visit_time"; ?></td>
<td><?php echo "$object->purpose"; ?></td>
<td>
		<a href="<?php echo site_url('visits'); ?>/detail/<?php echo "$object->visit_id"; ?>"<?php echo img('images/eye.jpg');?></a>
</td>
<td>
		<a href="<?php echo site_url('visits'); ?>/update/<?php echo "$object->visit_id"; ?>"<?php echo img('images/pencil.png');?></a>
</td>
<td>
		<a href="<?php echo site_url('visits'); ?>/delete/<?php echo "$object->visit_id"; ?>"<?php echo img('images/pencil.png');?></a>
</td>
</tr>
<?php endforeach; ?>
</table>
